import request from '@/utils/request'

// 新增视频
export function addDramaSeries(data){
    return request({
        url: '/vms/video/dramas-series/add',
        method: 'post',
        data: data
    })
}

// 获取分页视频资源列表
export function getPaginationList(params){
    return request({
        url: '/vms/video/dramas-series/getPaginationList',
        method: 'get',
        params: params
    })
}

// 新增视频
export function updateDramaSeries(data){
    return request({
        url: '/vms/video/dramas-series/update',
        method: 'post',
        data: data
    })
}

// 删除
export function delDramaSeries(id){
    return request({
        url: '/vms/video/dramas-series/del',
        method: 'get',
        params: { id }
    })
}

// 发布，取消发布
export function release(id){
    return request({
        url: '/vms/video/dramas-series/release',
        method: 'get',
        params: { id }
    })
}